package org.pointex.dao.impl;

import java.io.Serializable;
import java.util.Hashtable;
import java.util.List;

import org.pointex.common.dao.impl.BaseDaoImpl;
import org.pointex.dao.ConvertIndentDao;
import org.pointex.dao.ConvertRuleDetailDao;
import org.pointex.dao.ViewConvertUtilDao;
import org.pointex.domain.ConvertIndent;
import org.pointex.domain.ConvertRuleDetail;
import org.springframework.stereotype.Repository;

/**
 * 
 * @ClassName: ConvertRuleDetailDaoImpl  
 * @Description: TODO(兑换规则明细数据实现类)  
 * @author Kenny_Z' szqiuk@gmail.com
 * @date 2016年10月23日 下午3:28:17  
 *
 */
@Repository("ViewConvertUtilDao")
public class ViewConvertUtilDaoImpl extends BaseDaoImpl<Hashtable<Object, Object>, Serializable> implements ViewConvertUtilDao {

	/**
	 * 利用反射，获取mapper.xml的namespace
	 * <p>Title: </p>  
	 * <p>Description: </p>
	 */
	public ViewConvertUtilDaoImpl() {
		namespace = super.getNamespace();
	}
	
	public Hashtable<Object, Object> selectByUserName(String userName) {
		try {
			return getSqlSession().selectOne(getNamespace() + "selectByUserName", userName);
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}
	
	public Hashtable<Object, Object> authBuUserId(String Id) {
		try {
			return getSqlSession().selectOne(getNamespace() + "selectByUserId", Id);
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}
	

}
